package com.huaxindata.im.model.entity;

/**
 * @author songxf
 * @date 2018/1/8
 * @Desc $desc$
 * Copyright HUAXIN DATA. All rights reserved.
 */
public class ChatImageMessageBody extends ChatFileMessageBody {


    /**
     附件是否下载完成,ChatFileMessageBody中定义了几种下载状态
     */
    public int downloadStatus;

    /**
    缩略图本地文件路径
     */
   public String thumbLocalPath;

    /**
     缩略图服务器远程文件路径
     */
    public String thumbRemotePath;

    public ChatImageMessageBody(int type) {
        super(type);
    }

    public ChatImageMessageBody(String absolutePath) {
        super(Type.IMAGE);
        createFileMessageContent(absolutePath);
    }

    @Override
    public String toString() {
        return "ChatImageMessageBody{" +
                "downloadStatus=" + downloadStatus +
                ", thumbLocalPath='" + thumbLocalPath + '\'' +
                ", thumbRemotePath='" + thumbRemotePath + '\'' +
                '}';
    }
}
